package com.itheima.wms.common.constants;

import java.util.LinkedHashMap;

/**
 * 常量表
 */
public class ConstantTable {
    //温度类型 常温:CW、冷藏:LC、恒温:HW
    public static final LinkedHashMap<String, String> TEMPERATURE_TYPE_NAME = new LinkedHashMap() {{
        put("CW", "常温");
        put("LC", "冷藏");
        put("HW", "恒温");
    }};
    public static final LinkedHashMap<String, String> TEMPERATURE_TYPE_CODE = new LinkedHashMap() {{
        put("常温", "CW");
        put("冷藏", "LC");
        put("恒温", "HW");
    }};

    //承重类型 重型:ZX、中型:OX、轻型:QX
    public static final LinkedHashMap<String, String> BEARING_TYPE_NAME = new LinkedHashMap() {{
        put("ZX", "重型货架");
        put("OX", "中型货架");
        put("QX", "轻型货架");
    }};
    public static final LinkedHashMap<String, String> BEARING_TYPE_CODE = new LinkedHashMap() {{
        put("重型货架", "ZX");
        put("中型货架", "OX");
        put("轻型货架", "QX");
    }};

    //用途类型 入库缓存区：RKHCQ 出库缓存区：CKHCQ 存储区：CCQ  分拣区：FJQ 质检区：ZJQ
    public static final LinkedHashMap<String, String> USE_TYPE_NAME = new LinkedHashMap() {{
        put("RKHCQ", "入库缓存区");
        put("CKHCQ", "出库缓存区");
        put("CCQ", "存储区");
        put("FJQ", "分拣区");
        put("ZJQ", "质检区");
    }};
    public static final LinkedHashMap<String, String> USE_TYPE_CODE = new LinkedHashMap() {{
        put("入库缓存区", "RKHCQ");
        put("出库缓存区", "CKHCQ");
        put("存储区", "CCQ");
        put("分拣区", "FJQ");
        put("质检区", "ZJQ");
    }};

    //状态 0 停用 1启用
    public static final LinkedHashMap<Integer, String> STATUS_NAME = new LinkedHashMap() {{
        put(0, "停用");
        put(1, "可用");
    }};
    public static final LinkedHashMap<String, Integer> STATUS_CODE = new LinkedHashMap() {{
        put("停用", 0);
        put("可用", 1);
    }};

    //使用状态 0 空闲 1占用
    public static final LinkedHashMap<Integer, String> USE_STATUS_NAME = new LinkedHashMap() {{
        put(0, "空闲");
        put(1, "占用");
        put(2, "已满");
    }};
    public static final LinkedHashMap<String, Integer> USE_STATUS_CODE = new LinkedHashMap() {{
        put("空闲", 0);
        put("未满", 1);
        put("已满", 2);
    }};
}
